package com.doyutu.seed.repository.redis.domain;

import java.io.Serializable;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

/**
 * @author DoyuTu
 * @version 0.0.1
 * spring-boot-project-seed
 */
@RedisHash(value = "user", timeToLive = 3600L)
@Data
@RequiredArgsConstructor
@Accessors(chain = true)
public class SeedUserRedisDomain implements Serializable {

    private static final long serialVersionUID = -6989212312852948079L;

    @Id
    private String id;
    @NonNull
    private String userName;
    @NonNull
    private String type;
    @NonNull
    private String state;

}
